package Demo2;

public class Frog extends Animal implements Swimming{


    public Frog() {
    }

    public Frog(String name, String color, String kind) {
        super(name, color, kind);
    }

    public void eat() {
        System.out.println("青蛙是"+getKind()+"好会吃虫子喔。。。。");
    }

    public void yell() {
        System.out.println("那只"+getColor()+"的,名叫"+getName()+"青蛙在呱呱的叫。。。。");
    }

    public void swimming() {
        System.out.println("青蛙好会游泳喔。。。。");
    }



}
